package com.imooc.miaosha.service;

import com.imooc.miaosha.dto.GoodsDTO;
import com.imooc.miaosha.dto.GoodsManageVO;
import com.imooc.miaosha.dto.GoodsVO;
import com.imooc.miaosha.dto.SecondKillDetailVO;
import com.imooc.miaosha.pojo.Goods;

import java.util.List;
import java.util.Map;

public interface GoodsService {
    public List<GoodsVO> list();

    public List<GoodsManageVO> manageList();

    public SecondKillDetailVO getDetail(Long id);

    public List<GoodsVO> searchByIdList(List<Integer> idList);

    public int getTotalCount();

    public Map<String, Object> add(GoodsDTO goodsDTO);
}
